package com.example.docmanagement;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;

/**
 * 文档管理系统主启动类
 * 
 * @author Development Team
 * @since 1.0.0
 */
@SpringBootApplication
@EnableJpaAuditing // 启用 JPA 审计功能（自动填充创建时间、更新时间）
public class DocManagementApplication {

    public static void main(String[] args) {
        SpringApplication.run(DocManagementApplication.class, args);
        System.out.println("\n========================================");
        System.out.println("文档管理系统 API 启动成功！");
        System.out.println("访问 Swagger UI: http://localhost:8080/doc/swagger-ui.html");
        System.out.println("访问 Actuator: http://localhost:8080/doc/actuator");
        System.out.println("========================================\n");
    }
}
